package com.tensquare.notice.thread;

import org.springframework.stereotype.Component;

/**
 * @Author: xxx
 * @Date: 2022/11/9 22:38
 * @Description: 线程
 */
@Component
public class MyThread extends Thread{

    @Override
    public void run() {
        try {
            Thread.sleep(1000);
            System.out.println("1m输出");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
